<template>
	<div class="my-comment">
		<div class="main">
			<p class="content">{{ comment.content }}</p>
			<div class="bottom">
				<p class="user">{{ comment.user_name }}</p>
				<span class="time">{{ comment.add_time | formatDate }}</span>
			</div>
		</div>
	</div>
</template>

<script>
export default {
	props: {
		comment: Object
	}
};
</script>

<style scoped lang="less">
.my-comment {
	box-sizing: border-box;
	// background-color: pink;
	padding: 0px 10px;
	.main {
		height: 80px;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		border-bottom: 1px #ccc solid;
		font-size: 14px;
		color: #5c5c5c;
	}
	.bottom {
		width: 90%;
		display: flex;
		justify-content: space-between;
	}
	.user{
		color: #0094ff;
	}
}
</style>
